Name :Not equal

Symbol :NE

Illustrate:

    Compare whether the first input is not equal to the second input, and the result is assigned to the output OUT.

Image:

Parameter:

Parameter Statement Type Description
IN1 Input INT/SINT/DINT/UINT/USINT/UDINT/ULINT/REAL/LREAL/BYTE/WORD/LWORD/DWORD/TIME/DATE/TOD/DT/STRING
The first input value
IN2 Input INT/SINT/DINT/UINT/USINT/UDINT/ULINT/REAL/LREAL/BYTE/WORD/LWORD/DWORD/TIME/DATE/TOD/DT/STRING
The second input value
OUT Output BOOL
Output value

Example:

LD:

ST:



Interpretation:

parameter operandvalue
IN1TagIn1Enter a value:2
IN2TagIn2Enter a value:1
OUTTagOutOutput value:1
    IN1 and IN2 input the corresponding type of data, and NE outputs the calculation result.